﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Store/StoreMastePage.Master" AutoEventWireup="true" CodeBehind="ViewRequest.aspx.cs" Inherits="logicunivesityinventorystore.Store.ViewRequest" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
    $(window).bind('load', function () {
        var headerChk = $(".chkHeader input");
        var itemChk = $(".chkItem input");
        headerChk.bind("click", function () {
            itemChk.each(function () { this.checked = headerChk[0].checked; })
        }
                   );
        itemChk.bind("click", function () { if ($(this).checked == false) headerChk[0].checked = false; });
    });
    </script>
</asp:Content>
<asp:Content ID="Content9" runat="server" 
    contentplaceholderid="ContentPlaceHolder2">
        <h1>View Request</h1>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:GridView ID="gvViewRequest" runat="server" AutoGenerateColumns="False" 
            Height="108px" Width="648px" DataKeyNames="ItemCode" >
        <Columns>
            <asp:TemplateField>
                <HeaderTemplate>
                    <asp:CheckBox ID="chkHeader" runat="server" />
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:CheckBox ID="chkItem" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="ItemCode" HeaderText="Item Code" />
            <asp:BoundField DataField="Description" HeaderText="Item Name" />
            <asp:BoundField DataField="OrderedQty" HeaderText="Ordered Qty" />
            <asp:BoundField DataField="QtyInHand" HeaderText="Qty In Hand" />
            <asp:BoundField DataField="ReorderLevel" HeaderText="Reorder Level" />
            <asp:BoundField DataField="LogicStock" HeaderText="Logic Stock" />
        </Columns>
    </asp:GridView>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server">
        </asp:ObjectDataSource>
        <br />
    <asp:Button ID="btnSelectAll" runat="server" Text="Select All" 
            onclick="Button1_Click"  CssClass="ButtonStyle"/>&nbsp;
        <asp:Button ID="btnDeSelect"
        runat="server" Text="De Select All" onclick="Button2_Click" CssClass="ButtonStyle"/>
            <br />
            <br />
        <br />
        <asp:Button ID="btnPurchaseOrder" runat="server" Text="Purchase Order" 
            onclick="btnPurchaseOrder_Click" style="height: 26px" 
            CssClass="ButtonStyle" />
            <asp:ConfirmButtonExtender ID="btnPurchaseOrder_ConfirmButtonExtender" 
            runat="server" ConfirmText="Do you want to proceed to Purhcase Order?" Enabled="True" TargetControlID="btnPurchaseOrder">
        </asp:ConfirmButtonExtender>
            </asp:Content>

<asp:Content ID="Content12" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">
           
                </asp:Content>
<asp:Content ID="Content13" runat="server" 
    contentplaceholderid="ContentPlaceHolder6">
               
                </asp:Content>
<asp:Content ID="Content14" runat="server" 
    contentplaceholderid="ContentPlaceHolder7">
                </asp:Content>


<asp:Content ID="Content15" runat="server" 
    contentplaceholderid="ContentPlaceHolder4">
                </asp:Content>



<asp:Content ID="Content16" runat="server" 
    contentplaceholderid="ContentPlaceHolder5">
              
                </asp:Content>




